package com.qc.ayouth.shop.dbs.service.shop;

import com.qc.ayouth.shop.dbs.entity.TShopCategory;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 类目表  服务类
 * </p>
 *
 * @author Haojg
 * @since 2020-07-09
 */
public interface TShopCategoryService extends IService<TShopCategory> {
    /**
     * @description: 获取第一级分类
     * @author: haojg
     * @date: 2020/7/10 16:18
     * @param
     * @return: java.util.List<com.qc.ayouth.shop.dbs.entity.TShopCategory>
     */
    List<TShopCategory> getCategoryMain();

    /**
     * @description: 获取二级分类
     * @author: haojg
     * @date: 2020/7/10 16:19
     * @param catId 父类ID
     * @return: java.util.List<com.qc.ayouth.shop.dbs.entity.TShopCategory>
     */
    List<TShopCategory> getCategoryChildren(Long catId);
}
